

class ClassA {
    public void methodA(){
        System.out.println("ClassA methodA");
    }
    public void methodA(int a){  //方法重载
        System.out.println("ClassA methodA int");
    }
}

class ClassB extends ClassA{
    @Override
    public void methodA(){      //方法重写
        System.out.println("ClassB methodA");
    }
    public void methodB(){
        System.out.println("ClassB methodB");
    }

    public void func() {
        this.methodA();
        super.methodA();
        this.methodA(1);
        this.methodB();
    }
}


public class Test {
    public static void main(String[] args) {
        ClassB classB=new ClassB();
        classB.func();
    }
}
